<template>
  <div class="float-box-confirm">
    <div class="content">{{content}}</div>
    <div class="form-operation">
        <button class="form-btn btn-primary" @click="doOK">好的</button>
        <button class="form-btn " @click="doNO">不要</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'floatBoxConfirm',
  props:['content'],
  methods:{
    doOK(){
      this.$store.dispatch('responseFloatBoxPromise',{success:true})
    },
    doNO(){
      this.$store.dispatch('responseFloatBoxPromise',{success:false})
    }
  }
};
</script>

<style lang="less">
</style>